<?php

class Core_Form_Admin_Settings_Editor extends Core_Form_Admin_Settings_Abstract
{
	public function init()
	{
	    
        $this->setTitle('text editor settings');
        
        $this->setDescription('core.admin.form.regional.description');

        
        $this->addElement('select','site_locale',array(
            'label'=>'default locale',
            'multiOptions'=>Nuo_Utility_Locale::getLanguageNameList(),
            'desc'=>'core.form.admin.general.locale.desc'
        ));
        
        $this->addElement('select','site_language',array(
            'label'=>'default language',
            'multiOptions'=>Nuo_Utility_Locale::getLanguageNameList(),
            'desc'=>'core.form.admin.general.language.desc'
        ));
        
        $this->addElement('select','site_timezone',array(
            'label'=>'default timezone',
            'multiOptions'=>Nuo_Utility_Timezone::getAll(),
            'desc'=>'core.form.admin.general.timezone.desc'
        ));

		// init submit
		$this -> addElement('button', '_cancel', array(
				'label' => 'cancel',
				'type' => 'submit',
				'class' => 'cancel',
				'decorators' => array('ViewHelper')
		));

		$this -> addDisplayGroup(array(
				'_submit',
				'_cancel'
		), '_buttons');
	}

}
